package com.sakuracard.stepdemo.service.base;

import com.sakuracard.stepdemo.model.HomeContentEntity;
import com.sakuracard.stepdemo.web.model.ListResult;
import com.sakuracard.stepdemo.web.model.SearchParams;

public interface BaseService<T> {

  ListResult<T> getList(SearchParams params);

  T getData(int id);

  boolean insertData(T entity);

  boolean updateData(int id, T entity);

  boolean deleteData(long id);
}
